Subject: ATC script
Date: Wed, 30 Jan 2002 20:46:19 -0600
From: Brad Thoen <brad.thoen@mts.com>
To: <rod.larson@mts.com>

Rod,

#3 had an inverted IF structure from my zzTempFixes.  It could not have worked
in strain control, but that appears not to have been tried.

#4 retains the IF structure of zzTempFixes, but I saw a problem with the
statement
        self.chanl[5].setDimension[dimension]
This could not have gotten past the compiler, because ".chanl" is not a method.
Other than that, I didn't see any problem with #4.

So what I did was, starting with zzTempFixes.alt, which is basically the same
as your #3, is:
1)  Remove references to any channel other than 5 and 6.
2)  Remove references to strain control dimension.
3)  Add "self.preload[preload] to the end of the method, as you did.

Here's the result:

WITH VirtualMachine

METHOD setDimension[v] IS
        Set dimension of all table channels.
BEGIN
        dimension := v
        Channel.forAll[#setDimension, dimension]
        IF self.chan[6].adcDFbk.remote THEN
                IF dimension = forceDim THEN
                        self.chan[5].setDimension[displDim]
                        self.chan[6].adcDFbk.remote.out
                                .connect[self.chan[5].srv.remote.cmd]
                ELSE
                        self.chan[5].fg.remote.out
                                .connect[self.chan[5].srv.remote.cmd]
                END IF
        END IF
         self    .setPreload[preload]
                .setUnits
                .reattachDaq
END METHOD

WITH Object
